Loading TOC...

DELETE /v1/ext/{directories}

Summary

Delete the assets in /ext/{directories} in the modules database associated with the REST API instance.

Response

Whether or not any assets exist under the given directory, MarkLogic Server returns status code 204 (Deleted).

Required Privileges

This operation requires the rest-admin role, or the following privileges:

http://marklogic.com/xdmp/privileges/rest-admin

http://marklogic.com/xdmp/privileges/rest-reader

http://marklogic.com/xdmp/privileges/rest-writer

Usage Notes

{directories} must be one or more database directory path steps. For example: /your/domain/. Use the same directory path as was used to install the asset with GET /v1/ext/{directories}/{asset}.

For more details, see Managing Dependent Libraries and Other Assets in the REST Application Developer's Guide.

Example

$ curl --anyauth --user user:password -i -X DELETE  \
    'http://localhost:8000/v1/ext/my/example/'

==> All assets installed in /ext/my/example/ in the modules database are
    deleted. MarkLogic Server responds with output similar to the following:

HTTP/1.1 204 Deleted
Server: MarkLogic
Content-Length: 0
Connection: Keep-Alive
Keep-Alive: timeout=5
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.